<include file="Layout/header" />
<body>
<div class="breadcrumbs" id="breadcrumbs"> 
  <script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>
  <ul class="breadcrumb">
    <li> <i class="icon-home home-icon"></i> <a href="{:U('Admin/Index/welcome')}">首页</a> </li>
    <li class="active">下注详情</li>
  </ul>
</div>
<div class="page-content">
  <div class="page-header">
    <h1> 彩票管理 <small> <i class="icon-double-angle-right"></i> 下注详情 </small> </h1>
  </div>
  <div class="">
    <div class="tabbable">
      <ul class="nav nav-tabs" id="myTab">
        <foreach name="lottry_array" item="val" key="key">
           <li>
              <if condition="$key eq $c_id">
             <a class="btn btn-primary" href="{:U('Admin/Bet/index',array('c_id'=>$key))}">{$val.text}</a>
              <else />
              <a class="btn btn-info" href="{:U('Admin/Bet/index',array('c_id'=>$key))}">{$val.text}</a>
               </if>
          </li>
         </foreach>
      </ul>
      <div class="tab-content">
        <div class="table-responsive dataTables_wrapper"> 
          <!-- <include file="Layout/{$tpl}" />-->
           <form method="get" action="{:U('Admin/Bet/index')}">
      <table class="table table-striped table-bordered table-hover table-condensed">
        <tr>
         <td width="10%"><input class="col-xs-12 col-sm-8" type="text" name="c_no" placeholder="彩种期号" value="<?php echo $_GET['c_no']?>"></td>
         
        
          <td width="20%"><input class="btn btn-success" type="submit" value="搜索"></td>
        </tr>
      </table>
    </form>
             
            <table class="table table-center table-striped table-bordered table-hover dataTable">
              <thead>
                <tr>
                
                   <th>彩种期号</th>
                 
                  <th>平台赢</th>
                  <th>平台输</th>
                  <th>投注金额</th> 
                 </tr>
              </thead>
              <tbody>
              <foreach name="list" item="v" key="k">
                <tr>
                 
                  <td>{$v.c_no}<if condition="$v.c_id eq 13">&nbsp;&nbsp;<a href="{:U('Admin/Bet/detail')}/c_no/{$v.c_no}">详情>></a></if></td>
                 <if condition="$v.status eq 0">
                  <td>未结算</td>
                  <td>未结算</td>
				  <else/>
				  <td><if condition="$v.win eq ''">0.00<else/>{$v.win}</if></td>
                  <td><if condition="$v.lost eq ''">0.00<else/><i style="color:#EA4848">-{$v.lost}</i></if></td>
				  </if>
                  <td>{$v.money}</td>
                
                </tr>
               </foreach>  
              </tbody>
            </table>
             
       
        </div>
        
        <!-- /.table-responsive --> 
      </div>
    </div>
  </div>
  <!-- /.table-responsive --> 
</div>
<div >{$page}</div>
</div>
</div>
<include file="Layout/js"/> 
<script src="__ADMIN_JS__/bootbox.js"></script>
<link href="__ADMIN_CSS__/datepicker.css" rel="stylesheet" />
<script src="__ADMIN_JS__/date-time/bootstrap-datepicker.min.js"></script>
<script type="text/javascript">
			jQuery(function($) {
				$("#datepicker").datepicker({
					showOtherMonths: true,
					selectOtherMonths: false,
					 
				});
				 
				$("#datepicker1").datepicker({
					showOtherMonths: true,
					selectOtherMonths: false,
					 
				}); 
				
				var oTable1 = $('#sample-table-2').dataTable( {
				"aoColumns": [
			      { "bSortable": false },
			      null, null,null, null, null,
				  { "bSortable": false }
				] } );
				
				
				$('table th input:checkbox').on('click' , function(){
					var that = this;
					$(this).closest('table').find('tr > td:first-child input:checkbox')
					.each(function(){
						this.checked = that.checked;
						$(this).closest('tr').toggleClass('selected');
					});
						
				});
			
  				
			})
 		</script> 
</body>
</html>